<?php

defined('MYLITS') ? '' : exit('No direct script access allowed');

/**
 * @version     1.0.0
 * @package     mylits engine
 * @license     GNU General Public License version 3
 * @author      Mylits Engine <engine@mylits.com> - http://engine.mylits.com
 */
class languagesModel extends Mylits_Model {

    function __construct() {
        parent::__construct();
        $this->setConnectionNumber(0);
        $this->setSqlFile('languages');
    }

    public function getLangugesList(){
        $query = $this->openQuery('languages_list');
        return $this->runQuery($query);
    }
    
    public function getPublishedLanguages(){
        $query = $this->openQuery('get_published_languages');
        return $this->runQuery($query);
    }
}

?>